package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 课程表
 * @Date 2023-11-08 11:55:08
 * @author hjj
 */
@Data
@TableName("schedule")
@ApiModel(value="Schedule对象", description="课程表")
public class Schedule implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @TableField(exist = false) //该字段不存在于数据库中
    @ApiModelProperty("用户昵称")
    private String userNicName;

    @TableField(exist = false) //该字段不存在于数据库中
    @ApiModelProperty("用户头像")
    private String userImg;

    @Size(max= 128,message="编码长度不能超过128")
    @ApiModelProperty("课程表名称")
    private String name;

    @ApiModelProperty("创建/更新时间")
    private String updateTime;

    @ApiModelProperty("课程表开始日期")
    private String startDate;

    @ApiModelProperty("简介")
    private String remake;

    @ApiModelProperty("总周次")
    private Integer weekly;

    @ApiModelProperty("每天课程节数")
    private Integer pitchNum;

    @ApiModelProperty("课程表状态(1启用，0闲置)")
    private Integer state;

    @ApiModelProperty("是否公开(0否，1是)")
    private Integer isPublic;

    public Schedule() {
    }

    public Schedule(String remake,Integer userId, String name, String updateTime, String startDate, Integer weekly, Integer pitchNum, Integer state, Integer isPublic) {
        this.userId = userId;
        this.name = name;
        this.remake=remake;
        this.updateTime = updateTime;
        this.startDate = startDate;
        this.weekly = weekly;
        this.pitchNum = pitchNum;
        this.state = state;
        this.isPublic = isPublic;
    }

}
